import request from '@/utils/request'
import type { PageResult, LogItem, PageParams, BaseResponse } from '@/types'


// 分页查询操作日志
export interface LogPageResponse extends BaseResponse {
  result: PageResult<LogItem>
}
export const getLogPageListAPI = (params: PageParams): Promise<LogPageResponse> => {
  return request.get('/api/SysLog/GetPageList', { params })
}

// 删除操作日志
export const deleteLogAPI = (id: string): Promise<BaseResponse> => {
  return request.post('/api/SysLog/DelteByIds', [id])
}
